C1.AdoNet.Salesforce Assembly / C1.DataConnector.AdoNet Namespace / C1CommandBase<TCommandImpl> Class / ExecuteScalarAsync Method / ExecuteScalarAsync(CancellationToken) Method
The cancellation token to abort the query execution at any moment.

In This Topic
ExecuteScalarAsync(CancellationToken) Method
In This Topic
An asynchronous version of method ExecuteScalar that executes the query and returns the first column of the first row in the result set returned by the query. All other columns and rows are ignored.
Syntax
'Declaration
 
Public Overloads Overridable Function ExecuteScalarAsync( _
   ByVal cancellationToken As CancellationToken _
) As Task(Of Object)
 

Parameters

cancellationToken
The cancellation token to abort the query execution at any moment.

Return Value

The scalar result.
See Also